package com.baidu.videoseries.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

import com.baidu.videoseries.ToolbarActivity;
import com.baidu.videoseries.R;
import com.baidu.videoseries.constant.Config;

import java.io.File;

public class SysPlayerActivity extends ToolbarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sys_player);
        initView();
    }

    private void initView() {
        Intent intent=new Intent();
        intent.setAction(Intent.ACTION_VIEW);
        Uri uri=Uri.fromFile(new File(Config.Urls.LOCAL_BM));
        intent.setDataAndType(uri,"video/mp4");
        this.startActivity(intent);
    }
}
